public class Numbers 
{
   /**
      Produces a string containing the numbers in an array,
      separated by commas, such as "1,4,9"
      @param values an array of integer values
      @return a string containing the array elements, separated by
      commas.
    */
   public String separateWithCommas(int[] values)
   {
      // your work here
      int len=values.length;
      String str="";
      if(len==0){
         str=" ";
      }
      else{
         for(int i=0;i<len-1;i++){
            str=str+values[i]+",";
         }
         str=str+values[len-1]+"";
      }
      
      return str;
      
      
   }
}